<#include "user_manager_header.ftl">

			<ul class="nav nav-tabs">
			  <li><a href="dicttype_list">管理字典类别</a></li>
			  <li><a href="dicttype_create">增加字典类别</a></li>
			  <li class="active"><a>管理字典条目</a></li>
			  <li><a>增加字典条目</a></li>
			</ul>
			
			<div><p></p></div>

			<div class="panel panel-default">
			  <!-- Default panel contents -->
			  <div class="panel-heading">
			  <strong>字典条目列表</strong>
			  <span class="pull-right"><a href="dictitem_create?typecode=${typecode?if_exists}">添加条目</a></span>
			  </div>
			
			  <!-- Table -->
	        <table class="table table-striped">
	          <thead>
	            <tr>
	              <th>条目code</th>
	              <th>条目名称</th>
	              <th>排序索引</th>
	              <th>*</th>
	            </tr>
	          </thead>
	          <tbody>
<#if dictitem_list?exists>
<#list dictitem_list as dictitem>  
	            <tr>
	              <td>${dictitem.dictCode}</td>
	              <td>${dictitem.dictName}</td>
	              <td>${dictitem.sortIndex}</td>
	              <td>
	              <a href="dictitem_create?dictcode=${dictitem.dictCode}&typecode=${dictitem.typeCode}">修改</a> 
	                <a href="dictitem_delete?dictcode=${dictitem.dictCode}&typecode=${dictitem.typeCode}">删除</a> 
	              </td>
	            </tr>
</#list>
<#else>
	            <tr>
	              <td colspan="3">暂无记录</td>
	            </tr>
</#if>
	          </tbody>
	        </table>
	        
	        <p></p>
			</div>  <!-- /panel -->
			
<#include "user_manager_footer.ftl">
